package zhh.tangbao.commodity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;
import zhh.tangbao.system.entity.DaoEntity;

/**
 * 2023/2/26
 * @author 粥灰灰
 * @version 1.0
 * 商品实体
 */

@TableName(value = "commodity_entity")
@Data
@Accessors(chain = true)
public class CommodityEntity extends DaoEntity {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /** 产品名称 */
    private String commodityName;

    /** 产品介绍 */
    private String commodityIntroduction;

    /** 产品图片 */
    private String commodityImg;

    /** 产品价格 */
    private Double commodityPrice;

    /** 产品折扣系数 */
    private Double commodityPriceIncrease;

    /** 上下架状态 */
    private Integer sellStatus;

    public CommodityEntity() {
    }

    public CommodityEntity(String id, String commodityName, String commodityIntroduction, String commodityImg, Double commodityPrice, Double commodityPriceIncrease, Integer sellStatus) {
        this.id = id;
        this.commodityName = commodityName;
        this.commodityIntroduction = commodityIntroduction;
        this.commodityImg = commodityImg;
        this.commodityPrice = commodityPrice;
        this.commodityPriceIncrease = commodityPriceIncrease;
        this.sellStatus = sellStatus;
    }
}
